# #【列表List-开始】-------------------------------------------------------------------------------------------------------------------
# # 定义列表变量
# xs = ["zhangsan", "lisi", "wangwu"]
# # 打印查看列表的全部内容
# print(xs)

# # 遍历列表,可操作或查看里面每一个元素 for in
# for a in xs:
#     print(a)

# # 查看某个位置（索引）的元素内容
# item1 = xs[1]
# print(item1)

# # 查看列表切片元素内容
# item2 = xs[0:2]
# print("xs[0:2] >",item2)


# # 添加元素
# xs.append("赵六")
# print(xs)


# # 修改列表元素
# xs[1]="李四"
# print(xs)

# # 删除列表元素
# xs.remove("zhangsan")
# print(xs)
# #【列表-结束】XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX



# #【元组Tuple-开始】-------------------------------------------------------------------------------------------------------------------
# # Python 的元组与列表类似，不同之处在于元组的元素不能修改,元组中的元素值是不允许删除的

# 定义元组变量
sg = ("香蕉", "妮果", "菠萝")
# 打印查看元组的全部内容
# print(sg)

# # 遍历元组 for in 
# for a in sg:
#     print(a)

# 查看某个位置（索引）的元素内容
item1 = sg[1]
print(item1)

# # 查看列表切片元素内容
# item2 = sg[0:2]
# print("xs[0:2] >",item2)


# #【元组Tuple-结束】XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX






# #【集合set-开始】-------------------------------------------------------------------------------------------------------------------
# #集合（set）是一个无序的不重复元素序列。

# # 定义集合变量
# xs = {"zhangsan", "lisi", "wangwu"}
# # 打印查看列表的全部内容
# print(xs)

# # 遍历集合,可操作或查看里面每一个元素 for in 
# for a in xs:
#     print(a)


# # 添加元素
# xs.add("赵六2")
# print(xs)


# # 删除集合元素
# xs.remove("zhangsan")
# print(xs)


# #【集合set-结束】XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX








# #【字典dict-开始】-------------------------------------------------------------------------------------------------------------------
# # 键必须是唯一的，但值则不必。
# # 定义字典变量
# chengjis = {'张三': 12, '李四': 22, '王五': 33}

# # 遍历字典,可操作或查看里面每一个元素 for k,v in 
# zongfen = 0
# for k,v in chengjis.items():
#     zongfen = zongfen + v
#     print("key:%s,value:%s" % (k,v))


# # 查看某个元素内容
# item1 = chengjis.get("李四")
# print(item1)



# # 添加元素
# chengjis["tom"] = 44
# print(chengjis)


# # 修改列表元素
# chengjis["李四"] = 25
# print(chengjis)

# # 删除列表元素
# del chengjis["王五"]
# print(chengjis)


# #【字典dict-结束】XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX